% author : Lei Yinghaonan
% Creation Date : 2021.11.26
% Last Date : 2021.11.28
% brief : A simple test for plot mesh,which is hdf5 file by PHengLEI CFD
%         code.

clear all
clc

% cd the project path.
cd('E:\work_code\Matlab_code\Matlab_plot3dmesh')

% add the function path.
addpath('./ReadGrid');
addpath('./InitGrid');
addpath('./PlotGrid');
addpath('./CalcFaceIndex');
addpath('./CalcCellIndex');

% the name and path of mesh file.
filename = '3d_16ramp_unstr_0.fts';
filepath = './grid/';

% Read HDF5 file
grid = ReadGrid(filepath,filename);

% Init grid
grid = InitGrid(grid);
%%
clc
% plot grid
PlotGrid(grid);